<template>
	<view class="index" :style="{'height':windowHeight}">
		123
	</view>
</template>
<script>
	export default {
		components: {},
		data() {
			return {
				windowHeight: "200px", 
			}
		},
		onLoad() {
			this.GaoDu() //判断手机高度
		},
		methods: {
			// 判断手机高度
			GaoDu() {
				console.log('12356')
				// 判断手机页面的高度
				uni.getSystemInfo({

					success: (res) => {
						this.windowHeight = res.windowHeight + "px";
					}
				})
			},
		}
	}
</script>

<style scoped lang="less">
	.index {
		width: 100%;
		height: 100%;
		background: #F5F4F9;
	}
	@import url("@/pages/css.css");
</style>